﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using DocumentManagement.ViewsModels;

namespace DocumentManagement.Views
{
    /// <summary>
    /// Interaction logic for ReportDocumentOutDate.xaml
    /// </summary>
    public partial class ReportDocumentOutDate : Window
    {
        ReportDocumentOutDateViewsModel _reportDocumentOutDateViewsModel;
        public ReportDocumentOutDate(DateTime? DateDocInFromOUT, DateTime? DateDocInToOUT)
        {
            InitializeComponent();
            _reportDocumentOutDateViewsModel = this.Resources["reportDocumentOutDateViewsModel"] as ReportDocumentOutDateViewsModel;

            _reportDocumentOutDateViewsModel.MyDateDocInFromOUT = DateDocInFromOUT;
            _reportDocumentOutDateViewsModel.MyDateDocInToOUT = DateDocInToOUT;
        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            _reportDocumentOutDateViewsModel.CheckDateReportOUT();

           
        }
    }
}
